﻿namespace C12_Ex03_Shaked_032675316_Itay_032511057
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Drawing;
    using System.Windows.Forms;

    public class SolidColorControlPainter : IControlPainter
    {
        public void Paint(PaintEventArgs pe)
        {
            SolidBrush brush = new SolidBrush(Color.FromArgb(100, Color.Yellow));
            Region region = new Region(pe.ClipRectangle);
            pe.Graphics.FillRegion(brush, region);
        }
    }
}
